package com.ruoyi.rsikManage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报警阈值配置对象 t_alarm_threshold_config
 * 
 * @author wu
 * @date 2023-08-29
 */
public class TAlarmThresholdConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 单位编码 */
    @Excel(name = "单位编码")
    private String unitcode;

    /** 报警类型 参照报警类型字典表 */
    @Excel(name = "报警类型 参照报警类型字典表")
    private String alarmtype;

    /** 预警阈值 */
    @Excel(name = "预警阈值")
    private BigDecimal earlywarning;

    /** 报警阈值 */
    @Excel(name = "报警阈值")
    private BigDecimal alarmthreshold;

    /** 报警等级 */
    @Excel(name = "报警等级")
    private String alarmlevel;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedate;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deldate;

    /** 删除人 */
    @Excel(name = "删除人")
    private String delby;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Integer delflag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUnitcode(String unitcode) 
    {
        this.unitcode = unitcode;
    }

    public String getUnitcode() 
    {
        return unitcode;
    }
    public void setAlarmtype(String alarmtype) 
    {
        this.alarmtype = alarmtype;
    }

    public String getAlarmtype() 
    {
        return alarmtype;
    }
    public void setEarlywarning(BigDecimal earlywarning) 
    {
        this.earlywarning = earlywarning;
    }

    public BigDecimal getEarlywarning() 
    {
        return earlywarning;
    }
    public void setAlarmthreshold(BigDecimal alarmthreshold) 
    {
        this.alarmthreshold = alarmthreshold;
    }

    public BigDecimal getAlarmthreshold() 
    {
        return alarmthreshold;
    }
    public void setAlarmlevel(String alarmlevel) 
    {
        this.alarmlevel = alarmlevel;
    }

    public String getAlarmlevel() 
    {
        return alarmlevel;
    }
    public void setUpdatedate(Date updatedate) 
    {
        this.updatedate = updatedate;
    }

    public Date getUpdatedate() 
    {
        return updatedate;
    }
    public void setDeldate(Date deldate) 
    {
        this.deldate = deldate;
    }

    public Date getDeldate() 
    {
        return deldate;
    }
    public void setDelby(String delby) 
    {
        this.delby = delby;
    }

    public String getDelby() 
    {
        return delby;
    }
    public void setDelflag(Integer delflag) 
    {
        this.delflag = delflag;
    }

    public Integer getDelflag() 
    {
        return delflag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitcode", getUnitcode())
            .append("alarmtype", getAlarmtype())
            .append("earlywarning", getEarlywarning())
            .append("alarmthreshold", getAlarmthreshold())
            .append("alarmlevel", getAlarmlevel())
            .append("createby", getCreateBy())
            .append("updatedate", getUpdatedate())
            .append("updateby", getUpdateBy())
            .append("deldate", getDeldate())
            .append("delby", getDelby())
            .append("delflag", getDelflag())
            .toString();
    }
}
